package com.zshan.clinic.admin.mapper.clinic;


import com.zshan.clinic.admin.entity.vo.ClinicInfoVo;
import com.zshan.clinic.mybatis.SuperMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SpecClinicInfoMapper extends SuperMapper {

    /**
     *
     * @param clinicId
     * @param clinicName
     * @param admin
     * @param phone
     * @param license
     * @param isEnabled
     * @return
     */
    Long getClinicCountByCondition(@Param("clinicId") Long clinicId,
                                   @Param("clinicName") String clinicName,
                                   @Param("admin") String admin,
                                   @Param("phone") String phone,
                                   @Param("license") String license,
                                   @Param("isEnabled") String isEnabled);

    /**
     *
     * @param clinicId
     * @param clinicName
     * @param admin
     * @param phone
     * @param license
     * @param isEnabled
     * @param offset
     * @param pageSize
     * @return
     */
    List<ClinicInfoVo> getClinicListByCondition(@Param("clinicId") Long clinicId,
                                                @Param("clinicName") String clinicName,
                                                @Param("admin") String admin,
                                                @Param("phone") String phone,
                                                @Param("license") String license,
                                                @Param("isEnabled") String isEnabled,
                                                @Param("offset") Integer offset,
                                                @Param("pageSize") Integer pageSize);
}
